package com.okhttp.comment;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @author 关忆北丶
 * @description:
 * @date :2021/3/25 17:12
 */
public class CommentBean implements Serializable {
    public static final int TRUE = 1;//true
    public static final int FALSE = 0;//false
    public static final int FOLLOW_HE = 2;//
    public static final int FOLLOW_MUTUAL = 4;


    private static final long serialVersionUID = 135242117727001356L;
    private boolean success;
    private DataBean data;
    private String msg;
    private int code;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static class DataBean implements Serializable {

        private static final long serialVersionUID = -7257975387198624033L;
        private int size;
        private int count;
        private int page;
        public int totalCount;
        private String cursor;
        private List<CommentInfoBean> data;
        private CommentInfoBean pComment;

        public String getCursor() {
            return cursor;
        }

        public void setCursor(String cursor) {
            this.cursor = cursor;
        }

        public CommentInfoBean getpComment() {
            return pComment;
        }

        public void setpComment(CommentInfoBean pComment) {
            this.pComment = pComment;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public List<CommentInfoBean> getNormalList() {
            return data;
        }

        public void setNormalList(List<CommentInfoBean> normalList) {
            this.data = normalList;
        }

        public static class CommentInfoBean implements Serializable {

            private static final long serialVersionUID = -7349671783517837377L;
            private int id;
            private int uid;
            private int type;
            private int typeId;//www
            private String content;
            private String cueContent;//被回复人
            private int replyUid;
            private String replyContent;
            private int cueCid;
            private int supportNum;
            private int commentNum;
            private int status;
            private int commentPid;//www
            private int puid;
            private long ctime;
            private long utime;
            private int supported;
            private int replyCount;
            private UserBean user;
            private UserBean authUser;
            private String puname;
            public int highlight;//高亮:0-否，1-是
            public int isAuthor;//是否是作者本人：0-否，1-是
            public int authorLike;//作者是否赞过
            private List<ReplyCommentsBean> replyComments;
            private boolean isDelete; //是否已经删除。。true = 删除（本地自己加的字段）

            public boolean isDelete() {
                return isDelete;
            }

            public void setDelete(boolean delete) {
                isDelete = delete;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getTypeId() {
                return typeId;
            }

            public void setTypeId(int typeId) {
                this.typeId = typeId;
            }

            public String getContent() {
                if (TextUtils.isEmpty(content))
                    return "";
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCueContent() {
                return cueContent;
            }

            public void setCueContent(String cueContent) {
                this.cueContent = cueContent;
            }

            public int getReplyUid() {
                return replyUid;
            }

            public void setReplyUid(int replyUid) {
                this.replyUid = replyUid;
            }

            public String getReplyContent() {
                return replyContent;
            }

            public void setReplyContent(String replyContent) {
                this.replyContent = replyContent;
            }

            public int getCueCid() {
                return cueCid;
            }

            public void setCueCid(int cueCid) {
                this.cueCid = cueCid;
            }

            public int getSupportNum() {
                return supportNum;
            }

            public void setSupportNum(int supportNum) {
                this.supportNum = supportNum;
            }

            public int getCommentNum() {
                return commentNum;
            }

            public void setCommentNum(int commentNum) {
                this.commentNum = commentNum;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getPid() {
                return commentPid;
            }

            public void setPid(int pid) {
                this.commentPid = pid;
            }

            public int getPuid() {
                return puid;
            }

            public void setPuid(int puid) {
                this.puid = puid;
            }

            public long getCtime() {
                return ctime;
            }

            public void setCtime(long ctime) {
                this.ctime = ctime;
            }

            public long getUtime() {
                return utime;
            }

            public void setUtime(long utime) {
                this.utime = utime;
            }

            public int isSupported() {
                return supported;
            }

            public void setSupported(int supported) {
                this.supported = supported;
            }

            public int getReplyCount() {
                return replyCount;
            }

            public void setReplyCount(int replyCount) {
                this.replyCount = replyCount;
            }

            public UserBean getUser() {
                return user;
            }

            public UserBean getAuthUser() {
                return authUser;
            }

            public void setAuthUser(UserBean authUser) {
                this.authUser = authUser;
            }

            public void setUser(UserBean user) {
                this.user = user;
            }

            public String getPuname() {
                return puname;
            }

            public void setPuname(String puname) {
                this.puname = puname;
            }


            public List<ReplyCommentsBean> getReplyComments() {
                return replyComments;
            }

            public void setReplyComments(List<ReplyCommentsBean> replyComments) {
                this.replyComments = replyComments;
            }

            public static class UserBean implements Serializable {
                private static final long serialVersionUID = -8291568372301845544L;

                private int id;
                private String name;
                private String icon;
                //1 = 没查，0=没关系，1=自己，2=我关注了ta，3=ta关注了我，4=相互关注是好友
                private int focusFans;
                //粉丝 0 不是 1是
                private int isFans;

                public int getIsFans() {
                    return isFans;
                }

                public void setIsFans(int isFans) {
                    this.isFans = isFans;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getIcon() {
                    return icon;
                }

                public void setIcon(String icon) {
                    this.icon = icon;
                }

                public int isFocusFans() {
                    return focusFans;
                }

                public void setFocusFans(int focusFans) {
                    this.focusFans = focusFans;
                }
            }

            public static class ReplyCommentsBean extends CommentInfoBean {

                private static final long serialVersionUID = -831216785949809941L;
            }
        }
    }
}
